
public class Property extends Block{
	private int price=0;
	private String owner="null";
	private boolean isOwned=false;
	private String name = super.getMyName();
	protected Integer[] payment;
	private String color = "";
	private boolean canBuild = false;
	
	public Property(String name, int location, int price, int payment1, int payment2, int payment3, int payment4, int payment5, int payment6, int payment7){
		super(name,location);
		this.price = price;
		payment = new Integer[7];
		payment[0] = payment1;
		payment[1] = payment2;
		payment[2] = payment3;
		payment[3] = payment4;
		payment[4] = payment5;
		payment[5] = payment6;
		payment[6] = payment7;
	}
	
	
	public Property(String name, int location, int price, int payment1, int payment2, int payment3, int payment4){
		super(name,location);
		this.price = price;
		payment = new Integer[4];
		payment[0] = payment1;
		payment[1] = payment2;
		payment[2] = payment3;
		payment[3] = payment4;
	}
	
	public Property(String name, int location, int price, int payment1, int payment2){
		super(name,location);
		this.price = price;
		payment = new Integer[2];
		payment[0] = payment1;
		payment[1] = payment2;
	}
	
	public int getPayment(int index){
		return payment[index];
	}
	
	public void setPrice(int price) {
		this.price = price;
	}
	
	public int getPrice() {
		return price;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}

	public String getOwner() {
		return owner;
	}

	public void setAvailable(boolean isAvailable) {
		this.isOwned = isAvailable;
	}

	public boolean isAvailable() {
		return isOwned;
	}

	public void setThisName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setPayment(Integer[] payment) {
		this.payment = payment;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public String getColor() {
		return color;
	}

	public void setCanBuild(boolean canBuild) {
		this.canBuild = canBuild;
	}

	public boolean isCanBuild() {
		return canBuild;
	}
}